package day4.Fu;

public class Zi extends FU{
    private  int z;
    public Zi(){
        System.out.println("子类的无参构造");
    }

    public Zi(int z) {
        System.out.println("子类的单参构造器");
        this.z = z;
    }

    public Zi(int f, int z) {
        super(f);
        this.z = z;
        System.out.println("子类的全参构造器");
    }
public void show(){
    System.out.println("父类的属性："+super.getF());
    System.out.println("子类的属性："+this.z);
}
}
